<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title>caipiao-mobile</title>
  </head>
  <body>
    <noscript>
      <strong>We're sorry but caipiao-mobile doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
  <script type="text/javascript">
      //iOS Web APP中点击链接跳转到Safari 浏览器新标签页的问题 devework.com
      //stanislav.it/how-to-prevent-ios-standalone-mode-web-apps-from-opening-links-in-safari
      if(("standalone" in window.navigator) && window.navigator.standalone){
          var noddy, remotes = false;
          document.addEventListener('click', function(event) {
              noddy = event.target;
              while(noddy.nodeName !== "A" && noddy.nodeName !== "HTML") {
                  noddy = noddy.parentNode;
              }
              if('href' in noddy && noddy.href.indexOf('http') !== -1 && (noddy.href.indexOf(document.location.host) !== -1 || remotes))
              {
                  event.preventDefault();
                  document.location.href = noddy.href;
              }
          },false);
      }
  </script>
</html>
